package com.healthtop.utils;

import org.springframework.stereotype.Component;

/**
 * Created by skie on 18-6-20.
 */
@Component
public class Random {

    //生成随机数
    public static String getCard(){
        int code = (int)(Math.random() * (400000000 -100000000)) + 100000000; // 产生1000-9999之间的一个随机数
        String cardNnumer = String.valueOf(code);
        return cardNnumer;
    }

        public static void main(String[] args){
            System.out.println(getCard());
        }

}
